/*
 * @Descripttion:
 * @version:
 * @Author: sueRimn
 * @Date: 2020-10-30 15:29:40
 * @LastEditors: sueRimn
 * @LastEditTime: 2020-11-09 14:01:06
 */
import request from '@/utils/request'
import store from '@/store/index'
const base = require('../../env/index')

// 夹带k_token
function addK_Token(data) {
    var token = {
        k_token: store.getters.k_token
    }
    Object.assign(data, token)
    return data
}
export function get_UserInfo(data) {
    return request({
        url: base.question_url + '/api/v1/admin/group/getuser',
        method: 'POST',
        headers: {},
        data: addK_Token(data)
    })
}

// 登录接口
export function get_Login(data) {
    return request({
        url: base.permission_url + '/api/v1/admin/login/login',
        method: 'POST',
        headers: {},
        data: data
    })
}
